package com.itheima.String;

import java.sql.SQLOutput;

public class Demo2StringConstructor {
    public static void main(String[] args) {
        String s1 = new String();
        System.out.println(s1);

        char[] chs = {'a','b','c'};
        String s2 = new String(chs);
        System.out.println(s2);

        String s3 = new String("abc");
        System.out.println(s3);

        byte[] bytes = {97,98,99};
        String s4 = new String(bytes);
        System.out.println(s4);
    }
}
